package decisionalalgorithms.guialgorithms.controllers;

import decisionalalgorithms.guialgorithms.repositories.MatrixService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MatrixController {
    private final MatrixService matrixService;

    public MatrixController(MatrixService matrixService) {
        this.matrixService = matrixService;
    }

    @RequestMapping({"/matrix/inputMatrix"})
    public String getMatrixPage(Model model){
        model.addAttribute("utils", matrixService.getMatrixDetails());
        return "matrix/inputMatrix";
    }
}
